package com.service;

import com.service.form.SiteForm;
import com.service.form.StorageForm;
import com.service.form.WarehousingForm;
import com.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

@FeignClient(value = "site", contextId = "siteApiService")
public interface SiteApiService {


    @PostMapping("addSite")
    Result addSite(@RequestBody SiteForm siteForm);

    @GetMapping("findSiteByPageAndOperatingState")
    Result findSiteByPageAndOperatingState(@RequestParam("operatingState") String operatingState,@RequestParam("current") Integer current,@RequestParam("pageSize") Integer pageSize);

    @PostMapping("setSiteOfOperatingStateBySiteNumber")
    Result setSiteOfOperatingStateBySiteNumber(@RequestParam("operatingState") String operatingState,@RequestParam("siteNumber") String siteNumber);



}
